class Task68:
    def run(self, bst, node1, node2):
        if node1.val < node2.val:
            small = node1.val
            big = node2.val
        else:
            small = node2.val
            big = node1.val

        node = bst
        while node is not None:
            if small <= node.val <= big:
                return node
            elif node.val < small:
                node = node.right
            else:
                node = node.left
        return None
